package cn.yuanqiao.manage.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.annotation.IdAnnotation;
import cn.yuanqiao.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 租户全宗管理对象 MANAGE_FONDS
 * 
 * @author yuanqiao
 * @date 2023-06-11
 */
public class ManageFonds extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @IdAnnotation
    private Long id;

    /** 全宗号 */
    @Excel(name = "全宗号")
    @NotBlank(message = "全宗号不能为空")
    @Size(min = 0,max = 100,message = "全宗号长度不能超过100个字符")
    private String fondsCode;

    /** 全宗名称 */
    @Excel(name = "全宗名称")
    @NotBlank(message = "全宗名称不能为空")
    @Size(min = 0,max = 100,message = "全宗名称长度不能超过50个汉字")
    private String fondsName;

    private String orderNo;

    private String tenantId;

    private String tenantCode;
    //1 启动 0 未启用
    private String status;

    private Long deptId;

    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setFondsCode(String fondsCode)
    {
        this.fondsCode = fondsCode;
    }

    public String getFondsCode()
    {
        return fondsCode;
    }
    public void setFondsName(String fondsName)
    {
        this.fondsName = fondsName;
    }

    public String getFondsName()
    {
        return fondsName;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("ID", getId())
                .append("fondsCode", getFondsCode())
                .append("fondsName", getFondsName())
                .append("orderNo", getOrderNo())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}
